com.supermap.ar.areffect.gltfModel
Class Gltf
- java.lang.Object
-
- com.supermap.ar.areffect.gltfModel.Gltf
-
public class Gltf extends java.lang.ObjectGltf model class
-
-
Constructor Summary
Constructors Constructor and Description Gltf()The constructor.Gltf(java.lang.String filePath)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.util.List<Accessors>getAccessors()Gets accessorjava.util.List<Animations>getAnimations()Gets animation setAssetgetAsset()Gets Assetjava.util.List<Buffers>getBuffers()Gets gltf data buffer zonejava.util.List<BufferViews>getBufferViews()Gets tile setjava.lang.StringgetFilePath()Gets the path of the gltf filejava.util.List<Images>getImages()Gets imagesjava.lang.StringgetJsonStr()Gets json string of gltfjava.util.List<Materials>getMaterials()Gets material setjava.util.List<Meshes>getMeshes()Gets mesh setjava.util.List<Nodes>getNodes()Gets node setjava.util.List<Samplers>getSamplers()Gets samplersjava.lang.IntegergetScene()Gets Scene indexjava.util.List<Scenes>getScenes()Gets Scene setjava.util.List<Textures>getTextures()Gets texturesbooleansave()Saves the modelvoidsetAccessors(java.util.List<Accessors> accessors)Sets accessorvoidsetAnimations(java.util.List<Animations> animations)Sets animation setvoidsetAsset(Asset asset)Sets AssetvoidsetBuffers(java.util.List<Buffers> buffers)Sets gltf data buffer zonevoidsetBufferViews(java.util.List<BufferViews> bufferViews)Sets tile setvoidsetFilePath(java.lang.String filePath)Sets the path of the gltf filevoidsetImages(java.util.List<Images> images)Sets imagesvoidsetJsonStr(java.lang.String jsonStr)Sets json string of gltfvoidsetMaterials(java.util.List<Materials> materials)Sets material setvoidsetMeshes(java.util.List<Meshes> meshes)Sets mesh setvoidsetNodes(java.util.List<Nodes> nodes)Sets node setvoidsetSamplers(java.util.List<Samplers> samplers)Sets samplersvoidsetScene(java.lang.Integer scene)Sets Scene indexvoidsetScenes(java.util.List<Scenes> scenes)Sets Scene setvoidsetTextures(java.util.List<Textures> textures)Sets texture
-
-
-
Constructor Detail
-
Gltf
public Gltf()
The constructor.
-
Gltf
public Gltf(java.lang.String filePath)
The constructor.- Parameters:
filePath-
-
-
Method Detail
-
getFilePath
public java.lang.String getFilePath()
Gets the path of the gltf file- Returns:
-
setFilePath
public void setFilePath(java.lang.String filePath)
Sets the path of the gltf file- Parameters:
filePath-
-
getJsonStr
public java.lang.String getJsonStr()
Gets json string of gltf- Returns:
-
setJsonStr
public void setJsonStr(java.lang.String jsonStr)
Sets json string of gltf- Parameters:
jsonStr-
-
setAsset
public void setAsset(Asset asset)
Sets Asset- Parameters:
asset-
-
getAsset
public Asset getAsset()
Gets Asset- Returns:
-
setScene
public void setScene(java.lang.Integer scene)
Sets Scene index- Parameters:
scene-
-
getScene
public java.lang.Integer getScene()
Gets Scene index- Returns:
-
setScenes
public void setScenes(java.util.List<Scenes> scenes)
Sets Scene set- Parameters:
scenes-
-
getScenes
public java.util.List<Scenes> getScenes()
Gets Scene set- Returns:
-
setNodes
public void setNodes(java.util.List<Nodes> nodes)
Sets node set- Parameters:
nodes-
-
getNodes
public java.util.List<Nodes> getNodes()
Gets node set- Returns:
-
setMeshes
public void setMeshes(java.util.List<Meshes> meshes)
Sets mesh set- Parameters:
meshes-
-
getMeshes
public java.util.List<Meshes> getMeshes()
Gets mesh set- Returns:
-
setAccessors
public void setAccessors(java.util.List<Accessors> accessors)
Sets accessor- Parameters:
accessors-
-
getAccessors
public java.util.List<Accessors> getAccessors()
Gets accessor- Returns:
-
setBufferViews
public void setBufferViews(java.util.List<BufferViews> bufferViews)
Sets tile set- Parameters:
bufferViews-
-
getBufferViews
public java.util.List<BufferViews> getBufferViews()
Gets tile set- Returns:
-
setBuffers
public void setBuffers(java.util.List<Buffers> buffers)
Sets gltf data buffer zone- Parameters:
buffers-
-
getBuffers
public java.util.List<Buffers> getBuffers()
Gets gltf data buffer zone- Returns:
-
setMaterials
public void setMaterials(java.util.List<Materials> materials)
Sets material set- Parameters:
materials-
-
getMaterials
public java.util.List<Materials> getMaterials()
Gets material set- Returns:
-
setAnimations
public void setAnimations(java.util.List<Animations> animations)
Sets animation set- Parameters:
animations-
-
getAnimations
public java.util.List<Animations> getAnimations()
Gets animation set- Returns:
-
setTextures
public void setTextures(java.util.List<Textures> textures)
Sets texture- Parameters:
textures-
-
getTextures
public java.util.List<Textures> getTextures()
Gets textures- Returns:
-
setImages
public void setImages(java.util.List<Images> images)
Sets images- Parameters:
images-
-
getImages
public java.util.List<Images> getImages()
Gets images- Returns:
-
setSamplers
public void setSamplers(java.util.List<Samplers> samplers)
Sets samplers- Parameters:
samplers-
-
getSamplers
public java.util.List<Samplers> getSamplers()
Gets samplers- Returns:
-
save
public boolean save()
Saves the model- Returns:
-
-